using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using HengTong.Model.Db.Article;


namespace HengTong.ViewModel.Article.SysArticleTagVms
{
    public partial class SysArticleTagTemplateVm : BaseTemplateVM
    {
        [Display(Name = "标签名称")]
        public ExcelPropety TagNameExcel = ExcelPropety.CreateProperty<SysArticleTag>(x => x.TagName);
        [Display(Name = "标签编码")]
        public ExcelPropety TagCodeExcel = ExcelPropety.CreateProperty<SysArticleTag>(x => x.TagCode);
        [Display(Name = "标签描述")]
        public ExcelPropety DescriptionExcel = ExcelPropety.CreateProperty<SysArticleTag>(x => x.Description);
        [Display(Name = "标签颜色")]
        public ExcelPropety ColorExcel = ExcelPropety.CreateProperty<SysArticleTag>(x => x.Color);
        [Display(Name = "排序")]
        public ExcelPropety SortOrderExcel = ExcelPropety.CreateProperty<SysArticleTag>(x => x.SortOrder);
        [Display(Name = "是否启用")]
        public ExcelPropety IsActiveExcel = ExcelPropety.CreateProperty<SysArticleTag>(x => x.IsActive);

	    protected override void InitVM()
        {
        }

    }

    public class SysArticleTagImportVm : BaseImportVM<SysArticleTagTemplateVm, SysArticleTag>
    {

    }

}
